validate binary search tree

join shbcf.ru